package com.snopy.annotation;

import lombok.extern.slf4j.Slf4j;

import java.lang.annotation.Annotation;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * @author snopy
 * @version 1.0.0
 * @classname AnnotationTestA
 * @description
 * @email 77912204@qq.com
 * @date 2022/02/21 18:37
 */
@Slf4j
public class AnnotationTestA {

    public static void main(String[] args) {
        try {
            Class<?> aClass = Class.forName("com.snopy.annotation.custom_annotation.GenderValidator");
            Annotation[] annotations = aClass.getAnnotations();
            for (Annotation e:annotations) {
                log.info("annotationType->{}",e.annotationType());
            }
            LinkedBlockingQueue<Runnable> linkedBlockingQueue = new LinkedBlockingQueue<>(1);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }

    }

}
